package PO;

import java.io.Serializable;

public class StatePO implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private State state;
	private int startDay;
	private int endDay;
	private int year;
	
	public StatePO()
	{
		
		this(State.makeFrame,201301,20130101,20130601);
	}
	public StatePO(State s,int st,int e,int y)
	{
		state = s;
		startDay = st;
		endDay = e;
		year = y;	
	}
	
	public State  getState()
	{
		return state;
		
	}
	public void setState(State s)
	{
		this.state = s;
		
	}
	public void setStart(int s)
	{
		if (s>10000000&&s<90000000)
			this.startDay = s;
		
	}
	public void setEnd(int s)
	{
		if (s>10000000&&s<90000000)
			this.endDay = s;
		
	}
	public int getStart()
	{
			return this.startDay ;
		
	}
	public int getEnd()
	{

			return 	this.endDay ;
		
	}
	public int getYear()
	{
		
		return year;
	}

}
